package cn.buk.tms.eotms.service;

import cn.buk.common.JsonResult;
import cn.buk.tms.eotms.dto.FlightRefundOrderRequestDto;
import cn.buk.tms.eotms.response.RefundOrderResponseDto;
import cn.buk.tms.eotms.sc.SearchFlightOrderCriteria;
import cn.buk.tms.exception.BaseException;

import java.util.List;

/**
 * @author yfdai
 */
public interface RefundOrderService {

  List<RefundOrderResponseDto> searchRefundOrders(int userId, SearchFlightOrderCriteria sc);

  /**
   * 获取退票单详情
   * @param userId 用户id
   * @param id 退票单id
   * @return 操作结果
   */
  RefundOrderResponseDto getFlightRefundOrderDetail(int userId, int id);

  /**
   * 创建退票单
   * @param userId 用户id
   * @param dto 退票单生成DTO
   * @return 操作结果
   * @throws BaseException
   */
  JsonResult createFlightRefundOrder(int userId, FlightRefundOrderRequestDto dto) throws BaseException;
}
